import request from '@/plugins/axios/request';
let baseURL = process.env.VUE_APP_BASE_API + "/flow/user"

// 查询用户列表
export function getPageList(data) {
  return request({
    url: `${baseURL}/pageList`,
    method: 'post',
    data: data,
    isShowMessage: false
  })
}


export function add(data) {
  return request({
    url: `${baseURL}/add`,
    method: 'post',
    data: data,
    isShowMessage: false
  })
}

export function deleteFunApi(data) {
  return request({
    url: `${baseURL}/delete`,
    method: 'post',
    data: data,
    isShowMessage: false
  })
}


export function update(data) {
  return request({
    url: `${baseURL}/update`,
    method: 'post',
    data: data,
    isShowMessage: false
  })
}

export function userPermission(data) {
  return request({
    url: `${baseURL}/userPermission`,
    method: 'get',
    data: data,
    isShowMessage: false
  })
}


